package org.fyv233.missingno_craft.datagen;

import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
import net.fabricmc.fabric.api.datagen.v1.provider.FabricLanguageProvider;
import net.minecraft.registry.RegistryWrapper;
import org.fyv233.missingno_craft.block.ModBlocks;
import org.fyv233.missingno_craft.item.ModItems;

import java.util.concurrent.CompletableFuture;

public class ModENUSLanProvider extends FabricLanguageProvider {
    public ModENUSLanProvider(FabricDataOutput dataOutput, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookup) {
        super(dataOutput, "en_us", registryLookup);
    }

    @Override
    public void generateTranslations(RegistryWrapper.WrapperLookup wrapperLookup, TranslationBuilder translationBuilder) {
        translationBuilder.add(ModItems.MISSINGNO_AXE, "Missingno Axe");
        translationBuilder.add(ModItems.MISSINGNO_HOE, "Missingno Hoe");
        translationBuilder.add(ModItems.MISSINGNO_INGOT, "Missingno Ingot");
        translationBuilder.add(ModItems.MISSINGNO_NUGGET, "Missingno Nugget");
        translationBuilder.add(ModItems.MISSINGNO_SWORD, "Missingno Sword");
        translationBuilder.add(ModItems.MISSINGNO_PICKAXE, "Missingno Pickaxe");
        translationBuilder.add(ModItems.MISSINGNO_PROSPECTER, "Missingno Prospecter");

        translationBuilder.add(ModBlocks.MISSINGNO_BLOCK, "Missingno Block");
        translationBuilder.add(ModBlocks.MISSINGNO_ORE, "Missingno Ore");

        translationBuilder.add(ModBlocks.MISSINGNO_FENCE, "Missingno Fence");
        translationBuilder.add(ModBlocks.MISSINGNO_FENCE_GATE, "Missingno Fence Gate");
        translationBuilder.add(ModBlocks.MISSINGNO_SLABS, "Missingno Slab");
        translationBuilder.add(ModBlocks.MISSINGNO_STAIRS, "Missingno Stairs");
        translationBuilder.add(ModBlocks.MISSINGNO_BUTTON, "Missingno Button");

        translationBuilder.add(ModItems.MISSINGNO_HELMET, "Missingno Helmet");
        translationBuilder.add(ModItems.MISSINGNO_CHESTPLATE, "Missingno Chestplate");
        translationBuilder.add(ModItems.MISSINGNO_BOOTS, "Missingno Boots");
        translationBuilder.add(ModItems.MISSINGNO_LEGGINGS, "Missingno Leggings");

        translationBuilder.add("itemGroup.missingno_craft.missingno_group", "Missingno Craft");

        translationBuilder.add("text.missingno_craft.prospecter.output.found", "Found it! At %1$s.");
        translationBuilder.add("text.missingno_craft.prospecter.output.notfound", "There aren't any ore!");
        translationBuilder.add("text.missingno_craft.missingno_prospecter.tooltip", "Right click to use it.");
    }
}
